#ifndef ENCODEROPTIONMGR_H
#define ENCODEROPTIONMGR_H

#include <QObject>
#include <QHash>
#include <QSettings>

class EncoderOption;

class EncoderOptionMgr: public QObject
{
    Q_OBJECT
public:
    EncoderOptionMgr();

    EncoderOption *createOption (QSettings * ,EncoderOption * copy = NULL);
    EncoderOption *getOption (const QString &) const;

public:
    static EncoderOptionMgr *instance();

private:
    QHash <QString, EncoderOption *> m_options;

private slots:
    void onEncoderOptionDestroy(QObject *);
};

#endif // ENCODEROPTIONMGR_H
